{/include file="simpla/common/header.html"/}
{/include file="simpla/common/left.html"/}
<div id="main-content">
  <h2>欢迎您 {/$_adminname/}</h2>
  <p id="page-intro">商品退货！</p>
  <div class="clear"></div>
  <div class="content-box">
    <div class="content-box-header">
      <h3>商品退货</h3>
      <ul class="content-box-tabs">
        <li><a href="{/get_url rule="/sales/index"/}">销售明细</a></li>
        <li><a href="{/get_url rule="/sales/sales"/}">商品销售</a></li>
        <li><a href="#tab1" class="default-tab">商品退货</a></li>
      </ul>
      <div class="clear"></div>
    </div>
    <div class="content-box-content">
      <div class="tab-content default-tab" id="tab1">
        <div class="form">
          <form action="{/get_url rule='/sales/return'/}" method="post" id="js-form">
            <fieldset class="clearfix">
              <p>订单号： <span>
                <input type="text" value="" class="text-input small-input" name="order_id" />
                </span>&nbsp;
                <input type="submit" name="" class="button" id="button" value="查询" />
              </p>
            </fieldset>
          </form>
        </div>
        {/if $order_id/}
        <hr />
        <div class="form"> {/if $ac!="member"/}
          <form action="{/get_url rule='/sales/return'/}" method="post" id="js-form2">
          {/else/}
          <form id="js-form2" method="post" action="{/get_url rule='/sales/return-ac-member-mid/}-{/$mid/}-orderid-{/$orderid/}.html">
            {//if/}
            <fieldset class="clearfix">
              <input type="hidden" name="ac" value="del" />
              <input type="hidden" name="order_id" value="{/$order_id/}" />
              <table>
                <thead>
                  <tr>
                    <th><input type="checkbox" class="check-all">
                      全选</th>
                    <th>名称</th>
                    <th>数量</th>
                    <th>总价</th>
                    <th>销售时间</th>
                  </tr>
                </thead>
                <tbody>
                
                {/section name=i loop=$list/}
                <tr> {/if $list[i].refund_type eq 0/}
                  <td><input type="checkbox" name="sid[{/$smarty.section.i.index/}]" class="ck" value="{/$list[i].sid/}" /></td>
                  <td>{/$list[i].goods_name/}</td>
                  <td><input type="text" name="num[{/$smarty.section.i.index/}]" class="text-input min-input" value="{/$list[i].num/}" /></td>
                  <td>{/$list[i].price*$list[i].num/}</td>
                  <td>{/$list[i].dateymd/}</td>
                  {/else/}
                  <td colspan="5">商品：{/$list[i].goods_name/}，已经有过退款记录不能够再次退款！退款金额：{/$list[i].refund_amount/}元</td>
                  {//if/} </tr>
                {/sectionelse/}
                <tr>
                  <td colspan="5">没有该订单信息</td>
                </tr>
                {//section/}
                <tr>
                  <td colspan="5"><input type="submit" class="button" value="确认退货" /></td>
                </tr>
                  </tbody>
                
              </table>
            </fieldset>
          </form>
        </div>
        {//if/} </div>
    </div>
  </div>
  {/include file="simpla/common/copy.html"/} </div>
{/include file="simpla/common/footer.html"/}